# $Id: PKGBUILD 88782 2013-04-22 10:15:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-authen-radius
pkgver=0.22
pkgrel=1
pkgdesc="perl radius client"
arch=('any')
url="http://search.cpan.org/dist/RadiusPerl"
license=('GPL' 'PerlArtistic')
depends=('perl-data-hexdump>=0.02')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/M/MA/MANOWAR/RadiusPerl-$pkgver.tar.gz)
md5sums=('d1fe2d6ecf7ea99299e4e3a8f945aad8')

build() {
  cd  $srcdir/Authen-Radius-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Authen-Radius-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
